# opencv
find_package(OpenCV)

include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
include_directories(${CMAKE_CURRENT_LIST_DIR}/../common)

set(SRC ${CMAKE_CURRENT_LIST_DIR}/include/jsmn.h
    ${CMAKE_CURRENT_LIST_DIR}/src/jsmn.c
    ${CMAKE_CURRENT_LIST_DIR}/include/jsmn.hpp
    ${CMAKE_CURRENT_LIST_DIR}/src/jsmn.cpp
    ${CMAKE_CURRENT_LIST_DIR}/include/Parameters.h
    ${CMAKE_CURRENT_LIST_DIR}/include/configuration.h
    ${CMAKE_CURRENT_LIST_DIR}/src/configuration.cpp)

#file(GLOB config_src ${CMAKE_CURRENT_LIST_DIR}/src/*.*)
add_library(configuration STATIC ${SRC})
target_link_libraries(configuration ${OpenCV_LIBS})

add_executable(configuration-test ${CMAKE_CURRENT_LIST_DIR}/src/test.cpp)
target_link_libraries(configuration-test configuration)
target_link_libraries(configuration-test debug configuration)